/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wso.bus;

import wso.dao.OrderDetailDao;
import wso.dto.WsoOrderDetail;

/**
 *
 * @author Violet_Ink
 */
public class OrderDetailBusImpl implements OrderDetailBus{

    private OrderDetailDao orderdetailDao;

    public void setOrderdetailDao(OrderDetailDao orderdetailDao) {
        this.orderdetailDao = orderdetailDao;
    }

    public void deleteOrderDetail(long orderdetailid) {
        orderdetailDao.deleteOrderDetail(orderdetailid);
    }

    public void saveorUpdateOrderDetail(WsoOrderDetail orderdetail) {
        orderdetailDao.saveOrUpdateOrderDetail(orderdetail);
    }

    public WsoOrderDetail[] getAllOrderDetail() {
        return orderdetailDao.getAllOrderDetail();
    }

    public WsoOrderDetail getOrderDetail(long orderdetailid) {
        return orderdetailDao.getOrderDetail(orderdetailid);
    }
}
